import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'element-plus/dist/index.css'

// 持久化
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router'

//测试接口参数
// import { ale } from "@/apis/testAPi"
// ale().then(res => {
//     console.log(res);
// })

//引入初始化样式文件 
import "@/styles/common.scss"
//引入懒加载插件
import { lazyPlugin } from "@/directives/index.js"
//引入全局组件插件
import { componentPlugin } from "@/components/index.js"

//pinpa数据持久化
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
const app = createApp(App)

app.use(pinia).use(router).use(ElementPlus, {
    locale: zhCn,
}).use(lazyPlugin).use(componentPlugin)


app.mount('#app')


